package dao;
import java.util.List;
import entity.User;
public interface Userdao {
	  public boolean add (User user) throws Exception; //新增一条user表中记录

	    public boolean delete(User user) throws Exception;//删除一条记录

	    public boolean update(User user) throws Exception;//修改一条记录

	    public boolean find(String username) throws Exception;//根据用户ID判断用户存在与否
	    
	    public User findid(String username) throws Exception; //根据用户ID查找一条记录
	    
	    public List<User> findall() throws Exception;//返回user表所有数据
}
